# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-kombu
pkgver=5.3.7
pkgrel=0
pkgdesc="a message queue abstraction layer"
options="!check" # 3 Redis tests fail
url="https://pypi.org/project/kombu/"
arch="noarch"
license="BSD-3-Clause"
depends="py3-amqp py3-vine"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
checkdepends="py3-pyro4 py3-case py3-nose py3-mock py3-tz py3-pytest py3-sqlalchemy py3-fakeredis"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/k/kombu/kombu-$pkgver.tar.gz"
builddir="$srcdir/kombu-$pkgver"

replaces="py-kombu" # Backwards compatibility
provides="py-kombu=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 setup.py test
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
48104d61a7c38a211ec378f90aade09d682a99d4f8b3d18b4bce49b51c80be794ab4b012d2974893fbc630a37c52dad10fb57f8335238b3002a64e025a148ee2  kombu-5.3.7.tar.gz
"
